DXL layout column displays multiple specific modules

How do you modify the analysis wizard DXL to display attributes from multiple specific modules?

I can modify the wizard DXL to display attributes from one specific module (or use the wizard for that).  I can also modify the wizard DXL to exclude one specific module, but I haven't been able to modify the DXL to include or exclude multiple specific modules for just one level.


h3lp - Wed Jul 24 11:00:51 EDT 2019

Re: DXL layout column displays multiple specific modules
Don Fowler - Tue Jul 30 15:25:49 EDT 2019

This is not exactly what you were asking, but it is a piece of code that I wrote and use that should do the trick for you. It was sort-of-kinda written from the wizard. It follows all incoming links and puts the source objects in a skip list keyed on a concatenation of the first three characters of the Object Identifier and the Object Number. so when you unpack the objects, they are sorted by module then by number. Anyway all  you need to do is to check if the identifier of the incoming object matches the prefix of the module(s) you want to display (or not) and display or not any or all modules.

This is for the incoming links, since that is the most difficult, but by similarity you should be able to write the other one for outgoing links.


Attachments

GetSortedSource.dxl

Re: DXL layout column displays multiple specific modules
h3lp - Thu Aug 01 09:46:12 EDT 2019

Don Fowler - Tue Jul 30 15:25:49 EDT 2019

This is not exactly what you were asking, but it is a piece of code that I wrote and use that should do the trick for you. It was sort-of-kinda written from the wizard. It follows all incoming links and puts the source objects in a skip list keyed on a concatenation of the first three characters of the Object Identifier and the Object Number. so when you unpack the objects, they are sorted by module then by number. Anyway all  you need to do is to check if the identifier of the incoming object matches the prefix of the module(s) you want to display (or not) and display or not any or all modules.

This is for the incoming links, since that is the most difficult, but by similarity you should be able to write the other one for outgoing links.

This makes sense.  I will try the code out and report back.  Thank you!

Re: DXL layout column displays multiple specific modules
Chris Annal - Thu Sep 05 16:22:43 EDT 2019

You may be able to get by with modifying the Analysis Wizard script to identify the modules you want data from. Something like this:

//change from wizard output
//get the module name
impSprModName = fullName source (lnk)  
 
//change from wizard output
//limit extraction to those links from the desired module
if (impSprModName == "/foldername/foldername/modulename")  {
//finish Analysis Wizard script...

...replace "foldername" and "modulename" with the actual path(s) to the module(s) you want to include in your results.

I hope that helps!